/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.basic.park.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.hopes.bizz.common.core.annotation.ExcelDictImportValidate;
import com.hopes.boss.common.entity.ExcelDTO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;


/**
 * 企业事故事件
 *
 * @author pig
 * @date 2023-10-25 14:43:06
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class BaseAccidentEventExcelDTO extends ExcelDTO {

    private static final long serialVersionUID = 1L;

	/**
	 * 企业
	 */
	@ExcelProperty("企业")
	@NotBlank(message = "企业不能为空")
	@ExcelDictImportValidate(enumResolver = "sys_company",message = "企业不存在")
	private String orgId;

	/**
	* 发生时间
	*/
    @ExcelProperty("发生时间")
	@NotNull(message = "发生时间不能为空")
    private Date accidentTime;

	/**
	* 事故发生方
	*/
    @ExcelProperty("事故发生方")
	@NotBlank(message = "事故发生方不能为空")
	@ExcelDictImportValidate(enumResolver = "accident_source",message = "事故发生方类型不存在")
    private String accidentSource;

	/**
	* 事故类型
	*/
    @ExcelProperty("事故类型")
	@NotBlank(message = "事故类型不能为空")
	@ExcelDictImportValidate(enumResolver = "accident_type",message = "事故类型不存在")
    private String accidentType;

	/**
	* 事故等级
	*/
    @ExcelProperty("事故等级")
	@NotBlank(message = "事故等级不能为空")
	@ExcelDictImportValidate(enumResolver = "accident_level",message = "事故等级类型不存在")
    private String accidentLevel;

	/**
	* 事故情况
	*/
    @ExcelProperty("事故情况")
    private String accidentDetail;

	/**
	* 事故状态
	*/
    @ExcelProperty("事故状态")
	@NotBlank(message = "事故状态不能为空")
	@ExcelDictImportValidate(enumResolver = "accident_status",message = "事故状态类型不存在")
    private String accidentStatus;

	/**
	* 事故名称
	*/
    @ExcelProperty("事故名称")
    private String accidentName;

	/**
	* 备注
	*/
    @ExcelProperty("备注")
    private String remark;


}
